sql query to find difference between two dates in days

join shbcf.ru